<html>
<head><meta charset="utf-8"><title>rustdoc lint names · edition 2021 · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/index.html">edition 2021</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html">rustdoc lint names</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230364339"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230364339" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230364339">(Mar 15 2021 at 15:30)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> </p>
<blockquote>
<p>I changed my mind about the deny-by-default - I forgot rustc gives a hard error on unknown tool names, and I don't think it's good to have code that can compile in only one edition but not both</p>
</blockquote>
<p>why can't allow(rustdoc::stuff) work in both editions? that comment on the issue is talking about rust versions, not editions, right? or is there a reason it couldn't work on Edition 2015/2018 in say Rust 1.54?</p>



<a name="230375344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375344">(Mar 15 2021 at 16:18)</a>:</h4>
<blockquote>
<p>why can't allow(rustdoc::stuff) work in both editions? that comment on the issue is talking about rust versions, not editions, right? or is there a reason it couldn't work on Edition 2015/2018 in say Rust 1.54?</p>
</blockquote>
<p>because <code>register_tool</code> is broken: <a href="https://github.com/rust-lang/rust/issues/66079#issuecomment-788589193">https://github.com/rust-lang/rust/issues/66079#issuecomment-788589193</a></p>



<a name="230375423"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375423" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375423">(Mar 15 2021 at 16:19)</a>:</h4>
<p>oh wait hold on you're asking about editions</p>



<a name="230375453"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375453" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375453">(Mar 15 2021 at 16:19)</a>:</h4>
<p>yes, on 1.52 this could work in all editions</p>



<a name="230375599"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375599" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375599">(Mar 15 2021 at 16:19)</a>:</h4>
<p>but I don't like the idea that code works <em>only</em> in 1.52 or later <em>and</em> that the edition makes the previous behavior a deny-by-default error</p>



<a name="230375757"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375757" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375757">(Mar 15 2021 at 16:20)</a>:</h4>
<p>why not?</p>



<a name="230375923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230375923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230375923">(Mar 15 2021 at 16:20)</a>:</h4>
<p>idk, it seems like a bad user experience</p>



<a name="230376035"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230376035" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230376035">(Mar 15 2021 at 16:21)</a>:</h4>
<p>there's nothing I want to replace the old lints with, they have to be kept around forever for backwards compatibility anyway</p>



<a name="230376274"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230376274" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230376274">(Mar 15 2021 at 16:21)</a>:</h4>
<p>Rust 2021 won't be compiled or migrated to on older rust versions anyway, right? When would it be a problem that something of the new edition doesn't work on e.g. rust 1.49?</p>



<a name="230377134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230377134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230377134">(Mar 15 2021 at 16:26)</a>:</h4>
<p>Oh hmm I think you're right</p>



<a name="230377183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230377183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230377183">(Mar 15 2021 at 16:26)</a>:</h4>
<p>You need 1.56 or whatever to use the new edition</p>



<a name="230377716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/rustdoc%20lint%20names/near/230377716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/rustdoc.20lint.20names.html#230377716">(Mar 15 2021 at 16:30)</a>:</h4>
<p>mostly I'm annoyed that register_tool is broken <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>